<?php

class Form_Login extends Zend_Form
{

    public function init()
    {
        $this->setName('Login');
        $this->setMethod('post');
        
        $email = new Zend_Form_Element_Text('email');
        $email->setLabel('Email:')
        		->setRequired()
        		->addValidator('EmailAddress')
        		->addValidator('StringLength', false, array('max' => 160))
        		->addFilter('StringTrim')
        		->addFilter('StripTags');
        		
        $password = new Zend_Form_Element_Password('password');
        $password->setLabel('Password:')
        		->setRequired()
        		->addFilter('StringTrim')
        		->addFilter('StripTags');
        		
        $submit = new Zend_Form_Element_Submit('login');
        $submit->setLabel('Login');
        
        $this->addElements(array($email,$password,$submit));
    }


}

